<script>
  import config from './config'
  import store from '@/store'
  import { getToken } from '@/utils/auth'



  export default {
    onLaunch: function() {
      this.initApp()
    },
    methods: {
      // 初始化应用
      initApp() {
        // 初始化应用配置
        this.initConfig()
        // 检查用户登录状态
        //#ifdef H5
        this.checkLogin()
        //#endif
      },
      initConfig() {
        this.globalData.config = config
      },
      checkLogin() {
        if (!getToken()) {
			// 这里是lose token的时候
          // this.$tab.reLaunch('/pages/loading') 
        }
      }
    }
  }
</script>

<style lang="scss">
  @import '@/static/scss/index.scss';
  @import '@/common/css/common.css';
  @import "uview-ui/index.scss";
  uni-checkbox .uni-checkbox-input {
  			border-radius: 3upx !important;
  			color: #ffffff !important;
  		}
  		
  		uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
  			color: #fff;
  			border-color: rgb(0, 122, 255);
  			background: rgb(0, 122, 255);
  		}
  		uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:after {
  			font-size: 18px;
  		}
</style>
